/**
 * Created by Administrator on 2015/6/4.
 */


function Category() {

}


//获取分类列表，type可以为product、article
Category.getList = function (type, successCallback, errorCallback) {

    $.ajax({

        url: '/category/list',
        type: 'get',
        data: {"type": type},
        dataType: 'json',
        success: successCallback,
        error: errorCallback

    });
}
